From 0bf3e2b313a14a56402889d92d8f08aa5fc94056 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 6 Apr 2009 11:11:20 +0000 Subject: [PATCH] (ftxfont_draw_backgrond): Fix args to XFillRectangle. --- src/ftxfont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftxfont.c b/src/ftxfont.c index dcad85ba7fd..2cf45bb27a0 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c @@ -235,7 +235,7 @@ ftxfont_draw_backgrond (f, font, gc, x, y, width) GCForeground | GCBackground, &xgcv); XSetForeground (FRAME_X_DISPLAY (f), gc, xgcv.background); XFillRectangle (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), gc, - x, y - font->ascent, width, y + font->descent); + x, y - FONT_BASE (font), width, FONT_HEIGHT (font)); XSetForeground (FRAME_X_DISPLAY (f), gc, xgcv.foreground); } -- 2.30.2